﻿using System;

namespace NavFx
{
	/// <summary>
	/// Thrown when an attempt is made to set transition to a page without providing a target
	/// </summary>
	public class TargetNotSetException: Exception
	{
		/// <summary>
		/// Default constructor
		/// </summary>
		public TargetNotSetException()
			: base("No Target available, this property must be set before calling methods that depend on it.")
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message
		/// </summary>
		public TargetNotSetException(string message)
			: base(message)
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message and inner exception
		/// </summary>
		public TargetNotSetException(string message, Exception innerException)
			: base(message, innerException)
		{
			//nothing else to do
		}
	}
}
